package com.hh.form.action;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hh.form.service.impl.CreateSourceService;
import com.hh.system.util.base.BaseAction;

@SuppressWarnings("serial")
public class ActionCreateSource extends BaseAction {
	private String tableName;
	private String formSource;
	private String pageageName;
	@Autowired
	private CreateSourceService createSourceService;

	public void createCode() {
		Map<String, Object> map = createSourceService.createCode(pageageName,
				tableName, formSource);
		this.returnResult(map);
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getFormSource() {
		return formSource;
	}

	public void setFormSource(String formSource) {
		this.formSource = formSource;
	}

	public String getPageageName() {
		return pageageName;
	}

	public void setPageageName(String pageageName) {
		this.pageageName = pageageName;
	}
	
}
